package com.beiding.my.query.leader.compare;

import com.beiding.my.query.ParamHolder;
import com.beiding.my.query.leader.Compare;

/**
 * 单目比较符
 *
 * is null ,not null等都是单目的
 */
public class Unary implements Compare {

    //字段
    private String field;

    //符号
    private String symbol;

    public Unary(String field, String symbol) {
        this.field = field;
        this.symbol = symbol;
    }

    @Override
    public String create(ParamHolder paramHolder) {
        return field + " " + symbol;
    }
}
